#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include "ft2build.h"
#include FT_FREETYPE_H
#include FT_GLYPH_H

struct textImage
{
	int imWidth;
	int imHeight;
	unsigned char* imData;
};
typedef struct textImage textImage;
class FT2_Obj{

	FT_Library  library;	/* handle to library     */
	FT_Face     face;      /* handle to face object */
public:
	void InitFreeType(const char * fname, unsigned int h);
	void Free();
	void DrawAUnicode(wchar_t ch);
	textImage getImdata(wchar_t ch);
	textImage getImdata(wchar_t ch, int imW, int imH);
};